﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Brc_PaaS.Common.Entity
{
    /// <summary>
    /// 系统注册表
    /// </summary>
    public class Bas_System
    {
        /// <summary>
        /// 系统Id
        /// </summary>        
        public string Id { get; set; }
        /// <summary>
        /// 系统名称
        /// </summary>
        [Required(ErrorMessage = "系统名称不能为空")]
        public string Name { get; set; }
        /// <summary>
        /// 系统中文名
        /// </summary>
        [Required(ErrorMessage = "系统中文名不能为空")]
        public string Ch_Name { get; set; }
        /// <summary>
        /// 系统状态（0：禁用，1：启用）
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 所属账号Id
        /// </summary>
        public string AccountId { get; set; }
        /// <summary>
        /// 公钥
        /// </summary>
        public string PublicKey { get; set; }
        /// <summary>
        /// 私钥
        /// </summary>
        public string PrivateKey { get; set; }
        /// <summary>
        /// 鉴权方式（0：普通鉴权，1：安全鉴权）
        /// </summary>
        [Required(ErrorMessage = "鉴权方式不能为空")]
        [Range(0, 1)]
        public int AuthType { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public string CreateUserId { get; set; }

    }
}
